package com.example.entity;

import lombok.Data;

import java.time.Year;

@Data
public class Class {
    private Integer id;
    private String name;
    private Integer majorId;
    private Year grade;

    public Class() {
    }

    public Class(Integer id, String name, Integer majorId) {
        this.id = id;
        this.name = name;
        this.majorId = majorId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getMajorId() {
        return majorId;
    }

    public void setMajorId(Integer majorId) {
        this.majorId = majorId;
    }
}
